<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.7"/>
<title>BrainTrain: Main/Main.cpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">BrainTrain
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.7 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('_main_8cpp_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">Main.cpp</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_main_8cpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#include &lt;osgViewer/Viewer&gt;</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor">#include &lt;osg/Geometry&gt;</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="preprocessor">#include &lt;osgDB/ReadFile&gt;</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="preprocessor">#include &lt;osg/BlendFunc&gt;</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="preprocessor">#include &lt;osg/ValueObject&gt;</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="preprocessor">#include &lt;osgUtil/Optimizer&gt;</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="preprocessor">#include &lt;sstream&gt;</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="preprocessor">#include &lt;iostream&gt;</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;</div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor">#include &quot;../header/UtilFunctions.h&quot;</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="preprocessor">#include &quot;../header/WeaponHUD.h&quot;</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="preprocessor">#include &quot;../header/FPSCameraManipulator.h&quot;</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="preprocessor">#include &quot;../header/GeometryPlacerVisitor.h&quot;</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="preprocessor">#include &quot;../header/DrunkenInteractionCallback.h&quot;</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="preprocessor">#include &quot;../header/ModifyMaterialVisitor.h&quot;</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="preprocessor">#include &quot;../header/Bench.h&quot;</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="preprocessor">#include &quot;../header/CelShading.h&quot;</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="preprocessor">#include &quot;../header/BaseInteractionCallback.h&quot;</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="preprocessor">#include &quot;../header/KeyHandler.h&quot;</span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="preprocessor">#include &quot;../header/AnimationCreater.h&quot;</span></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="preprocessor">#include &quot;../header/AddPortalGunInteractionCallback.h&quot;</span></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="preprocessor">#include &quot;../header/AddInteractionCallbackToDrawableVisitor.h&quot;</span></div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="preprocessor">#include &quot;../header/ControlRoom.h&quot;</span></div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="preprocessor">#include &quot;../header/TrainSwitcherCallback.h&quot;</span></div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="keyword">using namespace </span>osg;</div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;</div>
<div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="_main_8cpp.html#a840291bc02cba5474a4cb46a9b9566fe">   34</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="_main_8cpp.html#a840291bc02cba5474a4cb46a9b9566fe">main</a>(<span class="keywordtype">void</span>){</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;    <span class="comment">//some vars</span></div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;    osg::setNotifyLevel(FATAL);</div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;    Vec3f fogColor(.3219, 0.37, 0.3564);</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;    <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> width, height;</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;    <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> oldWidth, oldHeight;</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;    <span class="keywordtype">int</span> screen = 0;  <span class="comment">//for easy multimonitor switching while debugging</span></div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;    std::string inputLine = <span class="stringliteral">&quot;&quot;</span>;</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;    <span class="keywordtype">int</span> choose = 0;</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;    std::vector&lt;ref_ptr&lt;Texture2D&gt;&gt; toonTexs;</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;    toonTexs.push_back(<a class="code" href="namespacebrtr.html#aea7b3b188858f0bce09f2450a749f497">brtr::createToonTex</a>(<span class="stringliteral">&quot;2d_toons_brown.png&quot;</span>));</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;    toonTexs.push_back(<a class="code" href="namespacebrtr.html#aea7b3b188858f0bce09f2450a749f497">brtr::createToonTex</a>(<span class="stringliteral">&quot;2d_toons_blue.png&quot;</span>));</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;    toonTexs.push_back(<a class="code" href="namespacebrtr.html#aea7b3b188858f0bce09f2450a749f497">brtr::createToonTex</a>(<span class="stringliteral">&quot;2d_toons_red.png&quot;</span>));</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;    toonTexs.push_back(<a class="code" href="namespacebrtr.html#aea7b3b188858f0bce09f2450a749f497">brtr::createToonTex</a>(<span class="stringliteral">&quot;2d_toons_violet.png&quot;</span>));</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;    toonTexs.push_back(<a class="code" href="namespacebrtr.html#aea7b3b188858f0bce09f2450a749f497">brtr::createToonTex</a>(<span class="stringliteral">&quot;2d_toons_yellow.png&quot;</span>));</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;    ref_ptr&lt;GraphicsContext::WindowingSystemInterface&gt; wsi = GraphicsContext::getWindowingSystemInterface();</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;    OSG_ALWAYS &lt;&lt; <span class="stringliteral">&quot;Please choose the desired Display Resolution:&quot;</span> &lt;&lt; std::endl;</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;    OSG_ALWAYS &lt;&lt; <span class="stringliteral">&quot;\t(1): Full HD 1920x1080 (only with a decent Graphic Card!)&quot;</span> &lt;&lt; std::endl;</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;    OSG_ALWAYS &lt;&lt; <span class="stringliteral">&quot;\t(2): HD+ 1366x768 (should work with most Cards)&quot;</span> &lt;&lt; std::endl;</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;    OSG_ALWAYS &lt;&lt; <span class="stringliteral">&quot;\t(3): HD 1280x720 (choose this for best performance, but worst quality)&quot;</span> &lt;&lt;std::endl;</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;    OSG_ALWAYS &lt;&lt; <span class="stringliteral">&quot;\t(4): Use Screen Resolution&quot;</span> &lt;&lt;std::endl; </div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;    OSG_ALWAYS &lt;&lt; <span class="stringliteral">&quot;\t(5): quit the program without experiencing the forsaken station =(&quot;</span> &lt;&lt; std::endl;</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;    std::getline(std::cin, inputLine);</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;    std::stringstream(inputLine) &gt;&gt; choose;</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;    <span class="keywordflow">while</span> (!(choose == 1 || choose == 2 || choose == 3 || choose == 4 || choose == 5)) {</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;        OSG_ALWAYS &lt;&lt; <span class="stringliteral">&quot;Only (1), (2), (3), (4) or (5) are valid options!&quot;</span> &lt;&lt;std::endl;</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;        OSG_ALWAYS &lt;&lt; choose &lt;&lt; std::endl;</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;        std::getline(std::cin, inputLine);</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;        std::stringstream(inputLine) &gt;&gt; choose;</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;    } </div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;    <span class="keywordflow">switch</span> (choose) {</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;    <span class="keywordflow">case</span> 1:</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;        width = 1920;</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;        height = 1080;</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;        <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;    <span class="keywordflow">case</span> 2:</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;        width = 1366;</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;        height = 768;</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;        <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;    <span class="keywordflow">case</span> 3:</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;        width = 1280;</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;        height = 720;</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;        <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;    <span class="keywordflow">case</span> 4:</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;        wsi-&gt;getScreenResolution(GraphicsContext::ScreenIdentifier(screen), width, height);</div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;        <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;    <span class="keywordflow">case</span> 5:</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;        <span class="keywordflow">return</span> EXIT_SUCCESS;</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;    }</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;      </div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;    </div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;    OSG_ALWAYS &lt;&lt; <span class="stringliteral">&quot;Setting some options which should help with performance (but probably do not)&quot;</span> &lt;&lt; std::endl;</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;    <span class="comment">//this viewer will display our graph</span></div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;    osgViewer::Viewer viewer;</div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;    <span class="comment">//Faster Intersection, hell yeah!</span></div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;    osgDB::Registry::instance()-&gt;setBuildKdTreesHint(osgDB::Options::BUILD_KDTREES);</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;    <span class="comment">//Get/Set Screen Resolution </span></div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;    wsi-&gt;getScreenResolution(GraphicsContext::ScreenIdentifier(screen), oldWidth, oldHeight);</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;    OSG_ALWAYS &lt;&lt; <span class="stringliteral">&quot;This DisplaySettings will be used:&quot;</span> &lt;&lt; std::endl;</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;    OSG_ALWAYS &lt;&lt; width &lt;&lt; <span class="stringliteral">&quot;x&quot;</span> &lt;&lt; height &lt;&lt; std::endl;</div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;    wsi-&gt;setScreenResolution(GraphicsContext::ScreenIdentifier(screen), width, height);</div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;    <span class="comment">//to make sure, we are using the right resolution, even if the set fails</span></div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;    wsi-&gt;getScreenResolution(GraphicsContext::ScreenIdentifier(screen), width, height);</div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;</div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;    <span class="comment">//Read IVEs, set Masks</span></div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;    OSG_ALWAYS &lt;&lt; <span class="stringliteral">&quot;Reading IVE&#39;s, making cookies.&quot;</span> &lt;&lt; std::endl;</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;    ref_ptr&lt;Node&gt; trainStation = osgDB::readNodeFile(<span class="stringliteral">&quot;../BlenderFiles/exports/BrainTrain6_1p25E_Lights.ive&quot;</span>);</div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;    trainStation-&gt;setNodeMask(<a class="code" href="namespacebrtr.html#af79a815819e2ef65ea9cd43dc9d43679">brtr::collisionMask</a>);</div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;    ref_ptr&lt;Node&gt; trainStationHitbox = osgDB::readNodeFile(<span class="stringliteral">&quot;../BlenderFiles/exports/BrainTrain6_1p25E_Lights_Hitbox.osgt&quot;</span>);</div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;    trainStationHitbox-&gt;setNodeMask(<a class="code" href="namespacebrtr.html#af79a815819e2ef65ea9cd43dc9d43679">brtr::collisionMask</a>);</div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;    ref_ptr&lt;Node&gt; bottleEmitter = osgDB::readNodeFile(<span class="stringliteral">&quot;../BlenderFiles/exports/BrainTrain_BottleParticles.osgt&quot;</span>);</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;    bottleEmitter-&gt;setNodeMask(~<a class="code" href="namespacebrtr.html#a21ab851f18c0c85fa006766034833a4f">brtr::interactionAndCollisionMask</a>);</div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;    ref_ptr&lt;Node&gt; drinkablebottleEmitter = osgDB::readNodeFile(<span class="stringliteral">&quot;../BlenderFiles/exports/BrainTrain_BottleParticlesDrinkable.osgt&quot;</span>);</div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;    drinkablebottleEmitter-&gt;setNodeMask(<a class="code" href="namespacebrtr.html#a2060f4d70c0e3bc7e2e35f82e279a40d">brtr::interactionMask</a>);</div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;    ref_ptr&lt;Node&gt; trainModel = osgDB::readNodeFile(<span class="stringliteral">&quot;../BlenderFiles/exports/Train.ive.0,0,-48.rot&quot;</span>);</div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;    ref_ptr&lt;Node&gt; portalGunTrain = osgDB::readNodeFile(<span class="stringliteral">&quot;../BlenderFiles/exports/Portalgun_Big.ive.0,0,-48.rot&quot;</span>);</div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;    <span class="comment">//Position &quot;Trains&quot; </span></div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;    ref_ptr&lt;PositionAttitudeTransform&gt; trainPosition = <span class="keyword">new</span> PositionAttitudeTransform;</div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;    trainPosition-&gt;setNodeMask(<a class="code" href="namespacebrtr.html#af79a815819e2ef65ea9cd43dc9d43679">brtr::collisionMask</a>);</div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;    trainPosition-&gt;setPosition(Vec3(0, 0, -20));</div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;    trainPosition-&gt;addChild(trainModel);</div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;    trainPosition-&gt;setDataVariance(Object::DYNAMIC);</div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;    ref_ptr&lt;PositionAttitudeTransform&gt; portalGuntrainPosition = <span class="keyword">new</span> PositionAttitudeTransform;</div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;    portalGuntrainPosition-&gt;setNodeMask(~<a class="code" href="namespacebrtr.html#a21ab851f18c0c85fa006766034833a4f">brtr::interactionAndCollisionMask</a>);</div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;    portalGuntrainPosition-&gt;setPosition(Vec3(0, 0, -20));</div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;    portalGuntrainPosition-&gt;addChild(portalGunTrain);</div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;    portalGuntrainPosition-&gt;setDataVariance(Object::DYNAMIC);</div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;</div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;    <span class="comment">//Animation for Train   </span></div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;    ref_ptr&lt;AnimationPath&gt; trainPath = <a class="code" href="class_animation_creator.html">AnimationCreator</a>().<a class="code" href="class_animation_creator.html#aca52f3472d0be7043c63ff5ede8084aa">createAnimationPath</a>(0.1f);</div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;    osg::ref_ptr&lt;osg::AnimationPathCallback&gt; trainAniCallback = <span class="keyword">new</span>  osg::AnimationPathCallback;</div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;    trainAniCallback-&gt;setAnimationPath(trainPath);</div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;    trainPosition-&gt;setUpdateCallback(trainAniCallback);</div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;    portalGuntrainPosition-&gt;setUpdateCallback(trainAniCallback);</div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;</div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;    <span class="comment">//Switch for trains</span></div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;    ref_ptr&lt;Switch&gt; train = <span class="keyword">new</span> Switch;</div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;    train-&gt;addChild(trainPosition, <span class="keyword">true</span>);</div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;    train-&gt;addChild(portalGuntrainPosition, <span class="keyword">false</span>);</div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;    train-&gt;addUpdateCallback(<span class="keyword">new</span> <a class="code" href="classbrtr_1_1_train_switcher_callback.html">brtr::TrainSwitcherCallback</a>);</div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;</div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;    ref_ptr&lt;Node&gt; ponyFlagSourceNode = osgDB::readNodeFile(<span class="stringliteral">&quot;../BlenderFiles/exports/BrainTrain_Flag.ive&quot;</span>);</div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;    ref_ptr&lt;brtr::CelShading&gt; ponyFlag = <span class="keyword">new</span> <a class="code" href="classbrtr_1_1_cel_shading.html">brtr::CelShading</a>(<span class="keyword">false</span>);</div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;    ponyFlag-&gt;addChild(ponyFlagSourceNode);</div>
<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;    <span class="comment">//let the flag move!</span></div>
<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;    ponyFlag-&gt;getOrCreateStateSet()-&gt;addUniform(<span class="keyword">new</span> Uniform(<span class="stringliteral">&quot;zAnimation&quot;</span>,<span class="keyword">true</span>), StateAttribute::ON | StateAttribute::OVERRIDE);</div>
<div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;    ref_ptr&lt;Node&gt; portalGunSource = osgDB::readNodeFile(<span class="stringliteral">&quot;../BlenderFiles/exports/Portalgun.ive&quot;</span>);</div>
<div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;    ref_ptr&lt;PositionAttitudeTransform&gt; portalGunPlacer = <span class="keyword">new</span> PositionAttitudeTransform;</div>
<div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;    portalGunPlacer-&gt;addChild(portalGunSource);</div>
<div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;    portalGunPlacer-&gt;setPosition(Vec3(-76.54, 5.28, 3.82));</div>
<div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;    <span class="comment">//vase on top of the ticketcorner</span></div>
<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;    ref_ptr&lt;PositionAttitudeTransform&gt; vase = <a class="code" href="namespacebrtr.html#a05625aff9337331ae351d283f79f0f1e">brtr::createVaseWithFlower</a>();</div>
<div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;    vase-&gt;setPosition(Vec3(-27.9, 17.4, 9.7));</div>
<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;    </div>
<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;    OSG_ALWAYS &lt;&lt; <span class="stringliteral">&quot;Placing bottles (and making some them drinkable)&quot;</span> &lt;&lt; std::endl;</div>
<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;    OSG_ALWAYS &lt;&lt; <span class="stringliteral">&quot;Do not drink and drive&quot;</span> &lt;&lt; std::endl;</div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;    OSG_ALWAYS &lt;&lt; <span class="stringliteral">&quot;Actually, this drink is bad, so do not drink it at all.&quot;</span> &lt;&lt; std::endl;</div>
<div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;    <span class="comment">//Create and make alpha Bottle</span></div>
<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;</div>
<div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;    ref_ptr&lt;Geometry&gt; bottle = <a class="code" href="namespacebrtr.html#a614d8d6b8bcc6c4e7f7ffb24ca48eb4c">brtr::createRealBottle</a>();</div>
<div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;    </div>
<div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;    <span class="comment">//Drinkable bottles</span></div>
<div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;    ref_ptr&lt;Geometry&gt; drinkablebottle = <a class="code" href="namespacebrtr.html#a614d8d6b8bcc6c4e7f7ffb24ca48eb4c">brtr::createRealBottle</a>();</div>
<div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;   </div>
<div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;    <span class="comment">//drunk one bottle, disable all! It&#39;s a Feature, not a bug ;)</span></div>
<div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;    ref_ptr&lt;Switch&gt; drinableBottleSwitch = <span class="keyword">new</span> Switch;</div>
<div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;    drinableBottleSwitch-&gt;addChild(drinkablebottleEmitter, <span class="keyword">true</span>);</div>
<div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;    drinableBottleSwitch-&gt;setNodeMask(<a class="code" href="namespacebrtr.html#a2060f4d70c0e3bc7e2e35f82e279a40d">brtr::interactionMask</a>);</div>
<div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;</div>
<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;    <span class="comment">//portalGunPicker</span></div>
<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;    ref_ptr&lt;Switch&gt; portalGunSwitch = <span class="keyword">new</span> Switch;</div>
<div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;    portalGunSwitch-&gt;addChild(portalGunPlacer, <span class="keyword">true</span>);</div>
<div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;    portalGunSwitch-&gt;setNodeMask(<a class="code" href="namespacebrtr.html#a2060f4d70c0e3bc7e2e35f82e279a40d">brtr::interactionMask</a>);</div>
<div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;</div>
<div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;    <span class="comment">//place bottle</span></div>
<div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;    <a class="code" href="classbrtr_1_1_geometry_placer_visitor.html">brtr::GeometryPlacerVisitor</a> bottlePlacer(bottle);</div>
<div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;    bottleEmitter-&gt;accept(bottlePlacer);</div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;    <span class="comment">//place drinkablebottle</span></div>
<div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;    <a class="code" href="classbrtr_1_1_geometry_placer_visitor.html">brtr::GeometryPlacerVisitor</a> drinkablebottlePlacer(drinkablebottle);</div>
<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;    drinkablebottleEmitter-&gt;accept(drinkablebottlePlacer);</div>
<div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;</div>
<div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;    <span class="comment">//Placing Benches</span></div>
<div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;    OSG_ALWAYS &lt;&lt; <span class="stringliteral">&quot;Placing (uncomfortable) benches.&quot;</span> &lt;&lt; std::endl;</div>
<div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;    OSG_ALWAYS &lt;&lt; <span class="stringliteral">&quot;Lying, they are great!&quot;</span> &lt;&lt; std::endl;</div>
<div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;    OSG_ALWAYS &lt;&lt; <span class="stringliteral">&quot;Na, that was a lie.&quot;</span> &lt;&lt; std::endl;</div>
<div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;</div>
<div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;    ref_ptr&lt;PositionAttitudeTransform&gt; leftBench = <span class="keyword">new</span> <a class="code" href="classbrtr_1_1_bench.html">brtr::Bench</a>(Vec3(49.5, -2.3, -0.6), 8);</div>
<div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;    leftBench-&gt;setAttitude(Quat(DegreesToRadians(167.0), Z_AXIS));</div>
<div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;    leftBench-&gt;setNodeMask(<a class="code" href="namespacebrtr.html#af79a815819e2ef65ea9cd43dc9d43679">brtr::collisionMask</a>);</div>
<div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;</div>
<div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;    ref_ptr&lt;PositionAttitudeTransform&gt; rightBench = <span class="keyword">new</span> <a class="code" href="classbrtr_1_1_bench.html">brtr::Bench</a>(Vec3(-50, 14.3, -0.6), 14);</div>
<div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;    rightBench-&gt;setAttitude(Quat(DegreesToRadians(192.7), Z_AXIS));</div>
<div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;    rightBench-&gt;setNodeMask(<a class="code" href="namespacebrtr.html#af79a815819e2ef65ea9cd43dc9d43679">brtr::collisionMask</a>);</div>
<div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;</div>
<div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;    <span class="comment">//a group for the whole station</span></div>
<div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;    <span class="comment">//needed for the createPipeLine Function</span></div>
<div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;    ref_ptr&lt;Group&gt; rootForToon = <span class="keyword">new</span> Group;</div>
<div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;    rootForToon-&gt;addChild(trainStation);</div>
<div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;    rootForToon-&gt;addChild(leftBench);</div>
<div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;    rootForToon-&gt;addChild(rightBench);</div>
<div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;    rootForToon-&gt;addChild(train);</div>
<div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;    rootForToon-&gt;addChild(bottleEmitter);</div>
<div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;    rootForToon-&gt;addChild(drinableBottleSwitch);</div>
<div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;    rootForToon-&gt;addChild(portalGunSwitch);</div>
<div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;    rootForToon-&gt;addChild(vase);</div>
<div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;    <span class="comment">//just to make sure</span></div>
<div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;    rootForToon-&gt;setDataVariance(Object::STATIC);</div>
<div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;</div>
<div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;</div>
<div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;    OSG_ALWAYS &lt;&lt; <span class="stringliteral">&quot;Creating Lights. Nobody wants a creepy, dark station.&quot;</span> &lt;&lt; std::endl;</div>
<div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;    OSG_ALWAYS &lt;&lt; <span class="stringliteral">&quot;Except for the creators.&quot;</span> &lt;&lt; std::endl;</div>
<div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;    ref_ptr&lt;LightSource&gt; light1 = <a class="code" href="namespacebrtr.html#ad772c6dbc0a2cabd40a284676c124a97">brtr::createLight</a>(Vec3(-76.88403, -8.27441, 20.63965), 1);</div>
<div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;    ref_ptr&lt;LightSource&gt; light2 = <a class="code" href="namespacebrtr.html#ad772c6dbc0a2cabd40a284676c124a97">brtr::createLight</a>(Vec3(-26.8972, 1.97552, 20.02043), 2);</div>
<div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;    ref_ptr&lt;LightSource&gt; light3 = <a class="code" href="namespacebrtr.html#ad772c6dbc0a2cabd40a284676c124a97">brtr::createLight</a>(Vec3(24.33239, 2.49185, 21.58063), 3);</div>
<div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;    ref_ptr&lt;LightSource&gt; light4 = <a class="code" href="namespacebrtr.html#ad772c6dbc0a2cabd40a284676c124a97">brtr::createLight</a>(Vec3(74.73347, -8.83866, 21.33362), 4);</div>
<div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;    ref_ptr&lt;LightSource&gt; staircaseLight = <a class="code" href="namespacebrtr.html#ad772c6dbc0a2cabd40a284676c124a97">brtr::createLight</a>(Vec3(0, 110, 38), 5);</div>
<div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160;    staircaseLight-&gt;getLight()-&gt;setQuadraticAttenuation(0.005);</div>
<div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;</div>
<div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;</div>
<div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;    rootForToon-&gt;addChild(light1);</div>
<div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;    rootForToon-&gt;addChild(light2);</div>
<div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160;    rootForToon-&gt;addChild(light3);</div>
<div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;    rootForToon-&gt;addChild(light4); </div>
<div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;    rootForToon-&gt;addChild(staircaseLight);</div>
<div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;</div>
<div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;</div>
<div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;    OSG_ALWAYS &lt;&lt; <span class="stringliteral">&quot;Creating RenderingPipeline. ToonyLoony!&quot;</span> &lt;&lt; std::endl;</div>
<div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;    <a class="code" href="structbrtr_1_1_rendering_pipeline.html">brtr::RenderingPipeline</a> pipe;</div>
<div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;    <a class="code" href="namespacebrtr.html#adcf0546a392221be3958ec96f99887f0">brtr::createRenderingPipeline</a>(width, height, *rootForToon, viewer, pipe,fogColor);</div>
<div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;</div>
<div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;</div>
<div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;    <span class="comment">//HUD Cams</span></div>
<div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;    ref_ptr&lt;brtr::WeaponHUD&gt; weaponHUD = <span class="keyword">new</span> <a class="code" href="classbrtr_1_1_weapon_h_u_d.html">brtr::WeaponHUD</a>;</div>
<div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160;    ref_ptr&lt;Camera&gt; textHUD = <a class="code" href="namespacebrtr.html#a62da4f109238c45882dd64d7a7e97a1d">brtr::createHUDCamera</a>(0, width, 0, height);</div>
<div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;    textHUD-&gt;addChild(<a class="code" href="namespacebrtr.html#a31c533ae635c528c761cc83e34e91b2f">brtr::createCrosshair</a>(width, height));</div>
<div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;    textHUD-&gt;getOrCreateStateSet()-&gt;setTextureMode(1, GL_TEXTURE_2D, StateAttribute::OFF);</div>
<div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;    <span class="comment">//making bottles drinkable</span></div>
<div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160;    drinkablebottle-&gt;getOrCreateUserDataContainer()-&gt;addUserObject(<span class="keyword">new</span> <a class="code" href="classbrtr_1_1_drunken_interaction_callback.html">brtr::DrunkenInteractionCallback</a>(viewer.getCamera(), textHUD, drinableBottleSwitch, width, height));</div>
<div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;    ref_ptr&lt;brtr::AddPortalGunInteractionCallback&gt; portalGunCallback = <span class="keyword">new</span> <a class="code" href="classbrtr_1_1_add_portal_gun_interaction_callback.html">brtr::AddPortalGunInteractionCallback</a>(weaponHUD, textHUD, portalGunSwitch, width, height);</div>
<div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;    <a class="code" href="classbrtr_1_1_add_interaction_callback_to_drawable_visitor.html">brtr::AddInteractionCallbackToDrawableVisitor</a> portalGunCallbackVisitor(portalGunCallback);</div>
<div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;    portalGunSource-&gt;accept(portalGunCallbackVisitor);</div>
<div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;</div>
<div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;    OSG_ALWAYS &lt;&lt; <span class="stringliteral">&quot;Making coffee.&quot;</span> &lt;&lt; std::endl;</div>
<div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;    <a class="code" href="classbrtr_1_1_modify_material_visitor.html">brtr::ModifyMaterialVisitor</a> mmv;</div>
<div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160;    mmv.<a class="code" href="classbrtr_1_1_modify_material_visitor.html#adfaa00524e765fdf3ddc5968187623cd">setAmbient</a>(Vec4(0.4, 0.4, 0.4, 4)).<a class="code" href="classbrtr_1_1_modify_material_visitor.html#a17748f6a7f41431832da66dd65e1c41f">setDiffuse</a>(Vec4(0.7,0.7,0.7,1.0)).<a class="code" href="classbrtr_1_1_modify_material_visitor.html#a698aa0c31f8c5add503d47bc9898eec3">setShininess</a>(42*3); <span class="comment">//.setShininess(42 * 3).setSpecular(Vec4(0.7, 0.7, 0.7, 1));</span></div>
<div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160;    <span class="comment">//weaponHUD-&gt;accept(imv);</span></div>
<div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160;    trainStation-&gt;accept(mmv);</div>
<div class="line"><a name="l00242"></a><span class="lineno">  242</span>&#160;    trainPosition-&gt;accept(mmv);</div>
<div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160;    portalGunSource-&gt;accept(mmv);</div>
<div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160;</div>
<div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160;    <span class="comment">//the root node, which holds the cams (pass and HUDs) as siblings</span></div>
<div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160;    ref_ptr&lt;Group&gt; sceneData = <span class="keyword">new</span> Group;</div>
<div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;    <span class="comment">//add elements to sceneData</span></div>
<div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;    OSG_ALWAYS &lt;&lt; <span class="stringliteral">&quot;Adding elements to scene root.&quot;</span> &lt;&lt; std::endl;</div>
<div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;    OSG_ALWAYS &lt;&lt; <span class="stringliteral">&quot;I am soooo excited, we are nearly done!.&quot;</span> &lt;&lt; std::endl;</div>
<div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;    sceneData-&gt;addChild(pipe.<a class="code" href="structbrtr_1_1_rendering_pipeline.html#ae945030321a6b44f00266954c8c50bf3">pass_0_color</a>);</div>
<div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160;    sceneData-&gt;addChild(pipe.<a class="code" href="structbrtr_1_1_rendering_pipeline.html#a18752632c1b557d283e523ebbc0443a0">pass_0_depth</a>);</div>
<div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160;    sceneData-&gt;addChild(pipe.<a class="code" href="structbrtr_1_1_rendering_pipeline.html#aea2228e41f1e5c6db5d616c05ecc27fd">pass_PostProcess</a>);  </div>
<div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160;    sceneData-&gt;addChild(trainStationHitbox);</div>
<div class="line"><a name="l00254"></a><span class="lineno">  254</span>&#160;    sceneData-&gt;addChild(weaponHUD);</div>
<div class="line"><a name="l00255"></a><span class="lineno">  255</span>&#160;    sceneData-&gt;addChild(textHUD);</div>
<div class="line"><a name="l00256"></a><span class="lineno">  256</span>&#160;    <span class="comment">//safety</span></div>
<div class="line"><a name="l00257"></a><span class="lineno">  257</span>&#160;    <span class="comment">//sceneData-&gt;getOrCreateStateSet()-&gt;setMode(GL_LIGHTING, StateAttribute::OFF | StateAttribute::OVERRIDE);</span></div>
<div class="line"><a name="l00258"></a><span class="lineno">  258</span>&#160;</div>
<div class="line"><a name="l00259"></a><span class="lineno">  259</span>&#160;    <span class="comment">//Set toonTex</span></div>
<div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160;    sceneData-&gt;getOrCreateStateSet()-&gt;setTextureAttributeAndModes(1, toonTexs[0], osg::StateAttribute::ON);</div>
<div class="line"><a name="l00261"></a><span class="lineno">  261</span>&#160;</div>
<div class="line"><a name="l00262"></a><span class="lineno">  262</span>&#160;    <span class="comment">//Control Room</span></div>
<div class="line"><a name="l00263"></a><span class="lineno">  263</span>&#160;    ref_ptr&lt;brtr::ToonTexSwitcherCallback&gt; toonCallback = <span class="keyword">new</span> <a class="code" href="classbrtr_1_1_toon_tex_switcher_callback.html">brtr::ToonTexSwitcherCallback</a>(sceneData, textHUD, width, height, toonTexs);</div>
<div class="line"><a name="l00264"></a><span class="lineno">  264</span>&#160;    ref_ptr&lt;brtr::ProgramSwitcherCallback&gt; programCallback = <span class="keyword">new</span> <a class="code" href="classbrtr_1_1_program_switcher_callback.html">brtr::ProgramSwitcherCallback</a>(pipe.<a class="code" href="structbrtr_1_1_rendering_pipeline.html#aea2228e41f1e5c6db5d616c05ecc27fd">pass_PostProcess</a>, textHUD, width, height, pipe.<a class="code" href="structbrtr_1_1_rendering_pipeline.html#afe773fb98986d39ef23a4edf3634af10">programs</a>);</div>
<div class="line"><a name="l00265"></a><span class="lineno">  265</span>&#160;    ref_ptr&lt;brtr::ControlRoom&gt; controlRoom = <span class="keyword">new</span> <a class="code" href="classbrtr_1_1_control_room.html">brtr::ControlRoom</a>(40, 50, *toonCallback, *programCallback);</div>
<div class="line"><a name="l00266"></a><span class="lineno">  266</span>&#160;    controlRoom-&gt;setPosition(Vec3(0, 170.3, 23.2));</div>
<div class="line"><a name="l00267"></a><span class="lineno">  267</span>&#160;</div>
<div class="line"><a name="l00268"></a><span class="lineno">  268</span>&#160;    <span class="comment">//Adding &quot;special-treatment nodes&quot; (mainly no outlines) to first pass</span></div>
<div class="line"><a name="l00269"></a><span class="lineno">  269</span>&#160;    pipe.<a class="code" href="structbrtr_1_1_rendering_pipeline.html#ae945030321a6b44f00266954c8c50bf3">pass_0_color</a>-&gt;addChild(ponyFlag);</div>
<div class="line"><a name="l00270"></a><span class="lineno">  270</span>&#160;    pipe.<a class="code" href="structbrtr_1_1_rendering_pipeline.html#a18752632c1b557d283e523ebbc0443a0">pass_0_depth</a>-&gt;addChild(ponyFlag);</div>
<div class="line"><a name="l00271"></a><span class="lineno">  271</span>&#160;    pipe.<a class="code" href="structbrtr_1_1_rendering_pipeline.html#ae945030321a6b44f00266954c8c50bf3">pass_0_color</a>-&gt;addChild(controlRoom);</div>
<div class="line"><a name="l00272"></a><span class="lineno">  272</span>&#160;    pipe.<a class="code" href="structbrtr_1_1_rendering_pipeline.html#a18752632c1b557d283e523ebbc0443a0">pass_0_depth</a>-&gt;addChild(controlRoom);</div>
<div class="line"><a name="l00273"></a><span class="lineno">  273</span>&#160;</div>
<div class="line"><a name="l00274"></a><span class="lineno">  274</span>&#160;    viewer.setSceneData(sceneData);</div>
<div class="line"><a name="l00275"></a><span class="lineno">  275</span>&#160;    osgUtil::Optimizer optimizer;</div>
<div class="line"><a name="l00276"></a><span class="lineno">  276</span>&#160;    optimizer.optimize(sceneData,osgUtil::Optimizer::STATIC_OBJECT_DETECTION);</div>
<div class="line"><a name="l00277"></a><span class="lineno">  277</span>&#160;    </div>
<div class="line"><a name="l00278"></a><span class="lineno">  278</span>&#160;</div>
<div class="line"><a name="l00279"></a><span class="lineno">  279</span>&#160;    <span class="comment">//Manipulator and KeyHandler</span></div>
<div class="line"><a name="l00280"></a><span class="lineno">  280</span>&#160;    OSG_ALWAYS &lt;&lt; <span class="stringliteral">&quot;Adding Manipulator and KeyHandler. What could possible go wrong?.&quot;</span> &lt;&lt; std::endl;</div>
<div class="line"><a name="l00281"></a><span class="lineno">  281</span>&#160;    viewer.setCameraManipulator(<span class="keyword">new</span> <a class="code" href="classbrtr_1_1_f_p_s_camera_manipulator.html">brtr::FPSCameraManipulator</a>(0.25, 7, rootForToon));</div>
<div class="line"><a name="l00282"></a><span class="lineno">  282</span>&#160;    osg::ref_ptr&lt;brtr::KeyHandler&gt; keyHandler = <span class="keyword">new</span> <a class="code" href="classbrtr_1_1_key_handler.html">brtr::KeyHandler</a>(sceneData, pipe.<a class="code" href="structbrtr_1_1_rendering_pipeline.html#aea2228e41f1e5c6db5d616c05ecc27fd">pass_PostProcess</a>, pipe.<a class="code" href="structbrtr_1_1_rendering_pipeline.html#afe773fb98986d39ef23a4edf3634af10">programs</a>);</div>
<div class="line"><a name="l00283"></a><span class="lineno">  283</span>&#160;    viewer.addEventHandler(weaponHUD-&gt;getWeaponHandler());</div>
<div class="line"><a name="l00284"></a><span class="lineno">  284</span>&#160;    viewer.addEventHandler(keyHandler);</div>
<div class="line"><a name="l00285"></a><span class="lineno">  285</span>&#160;</div>
<div class="line"><a name="l00286"></a><span class="lineno">  286</span>&#160;    OSG_ALWAYS &lt;&lt; <span class="stringliteral">&quot;Potato.&quot;</span> &lt;&lt; std::endl;</div>
<div class="line"><a name="l00287"></a><span class="lineno">  287</span>&#160;    OSG_ALWAYS &lt;&lt; <span class="stringliteral">&quot;Finished! Press Enter to start the fun!&quot;</span> &lt;&lt;std::endl;</div>
<div class="line"><a name="l00288"></a><span class="lineno">  288</span>&#160; </div>
<div class="line"><a name="l00289"></a><span class="lineno">  289</span>&#160;    getchar();</div>
<div class="line"><a name="l00290"></a><span class="lineno">  290</span>&#160;    OSG_ALWAYS &lt;&lt; <span class="stringliteral">&quot;The cake is a lie.&quot;</span> &lt;&lt; std::endl;</div>
<div class="line"><a name="l00291"></a><span class="lineno">  291</span>&#160;    viewer.setUpViewOnSingleScreen(screen);</div>
<div class="line"><a name="l00292"></a><span class="lineno">  292</span>&#160;    osgViewer::GraphicsWindow* window = <span class="keyword">dynamic_cast&lt;</span>osgViewer::GraphicsWindow*<span class="keyword">&gt;</span>(viewer.getCamera()-&gt;getGraphicsContext());</div>
<div class="line"><a name="l00293"></a><span class="lineno">  293</span>&#160;    <span class="keywordflow">if</span> (window) {</div>
<div class="line"><a name="l00294"></a><span class="lineno">  294</span>&#160;        window-&gt;useCursor(<span class="keyword">false</span>);</div>
<div class="line"><a name="l00295"></a><span class="lineno">  295</span>&#160;    }</div>
<div class="line"><a name="l00296"></a><span class="lineno">  296</span>&#160;    <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00297"></a><span class="lineno">  297</span>&#160;        OSG_ALWAYS &lt;&lt; <span class="stringliteral">&quot;WARNING: COULD NOT HIDE MOUSE CURSOR&quot;</span> &lt;&lt; std::endl &lt;&lt; <span class="stringliteral">&quot;PICTURE WILL SUCK A BIT&quot;</span> &lt;&lt; std::endl &lt;&lt; <span class="stringliteral">&quot;This just had to go wrong -.-*&quot;</span> &lt;&lt; std::endl;</div>
<div class="line"><a name="l00298"></a><span class="lineno">  298</span>&#160;    }</div>
<div class="line"><a name="l00299"></a><span class="lineno">  299</span>&#160;</div>
<div class="line"><a name="l00300"></a><span class="lineno">  300</span>&#160;    <span class="keywordflow">while</span> (!viewer.done())</div>
<div class="line"><a name="l00301"></a><span class="lineno">  301</span>&#160;        viewer.frame();</div>
<div class="line"><a name="l00302"></a><span class="lineno">  302</span>&#160; </div>
<div class="line"><a name="l00303"></a><span class="lineno">  303</span>&#160;    wsi-&gt;setScreenResolution(GraphicsContext::ScreenIdentifier(screen), oldWidth, oldHeight);</div>
<div class="line"><a name="l00304"></a><span class="lineno">  304</span>&#160;    <span class="keywordflow">return</span> EXIT_SUCCESS;</div>
<div class="line"><a name="l00305"></a><span class="lineno">  305</span>&#160;}</div>
<div class="ttc" id="classbrtr_1_1_key_handler_html"><div class="ttname"><a href="classbrtr_1_1_key_handler.html">brtr::KeyHandler</a></div><div class="ttdoc">Key Handler Class, handles all of our KeyFunctions, which do not belong to camera control (this are h...</div><div class="ttdef"><b>Definition:</b> <a href="_key_handler_8h_source.html#l00023">KeyHandler.h:23</a></div></div>
<div class="ttc" id="classbrtr_1_1_cel_shading_html"><div class="ttname"><a href="classbrtr_1_1_cel_shading.html">brtr::CelShading</a></div><div class="ttdoc">CelSading Effect, every child of this node will get the effect. </div><div class="ttdef"><b>Definition:</b> <a href="_cel_shading_8h_source.html#l00018">CelShading.h:18</a></div></div>
<div class="ttc" id="classbrtr_1_1_f_p_s_camera_manipulator_html"><div class="ttname"><a href="classbrtr_1_1_f_p_s_camera_manipulator.html">brtr::FPSCameraManipulator</a></div><div class="ttdoc">A FPS style CameraManipulator with ground clamping and intersection. </div><div class="ttdef"><b>Definition:</b> <a href="_f_p_s_camera_manipulator_8h_source.html#l00033">FPSCameraManipulator.h:33</a></div></div>
<div class="ttc" id="classbrtr_1_1_modify_material_visitor_html_adfaa00524e765fdf3ddc5968187623cd"><div class="ttname"><a href="classbrtr_1_1_modify_material_visitor.html#adfaa00524e765fdf3ddc5968187623cd">brtr::ModifyMaterialVisitor::setAmbient</a></div><div class="ttdeci">ModifyMaterialVisitor &amp; setAmbient(osg::Vec4 val)</div><div class="ttdef"><b>Definition:</b> <a href="_modify_material_visitor_8cpp_source.html#l00057">ModifyMaterialVisitor.cpp:57</a></div></div>
<div class="ttc" id="classbrtr_1_1_toon_tex_switcher_callback_html"><div class="ttname"><a href="classbrtr_1_1_toon_tex_switcher_callback.html">brtr::ToonTexSwitcherCallback</a></div><div class="ttdoc">Callback for switching the ToonTextures. </div><div class="ttdef"><b>Definition:</b> <a href="_toon_tex_switcher_callback_8h_source.html#l00017">ToonTexSwitcherCallback.h:17</a></div></div>
<div class="ttc" id="classbrtr_1_1_modify_material_visitor_html_a17748f6a7f41431832da66dd65e1c41f"><div class="ttname"><a href="classbrtr_1_1_modify_material_visitor.html#a17748f6a7f41431832da66dd65e1c41f">brtr::ModifyMaterialVisitor::setDiffuse</a></div><div class="ttdeci">ModifyMaterialVisitor &amp; setDiffuse(osg::Vec4 val)</div><div class="ttdef"><b>Definition:</b> <a href="_modify_material_visitor_8cpp_source.html#l00037">ModifyMaterialVisitor.cpp:37</a></div></div>
<div class="ttc" id="namespacebrtr_html_a614d8d6b8bcc6c4e7f7ffb24ca48eb4c"><div class="ttname"><a href="namespacebrtr.html#a614d8d6b8bcc6c4e7f7ffb24ca48eb4c">brtr::createRealBottle</a></div><div class="ttdeci">osg::ref_ptr&lt; osg::Geometry &gt; createRealBottle()</div><div class="ttdoc">Creates a Bottle with Material with the help of the BodyOfRotationFunction. </div><div class="ttdef"><b>Definition:</b> <a href="_util_functions_8cpp_source.html#l00377">UtilFunctions.cpp:377</a></div></div>
<div class="ttc" id="classbrtr_1_1_bench_html"><div class="ttname"><a href="classbrtr_1_1_bench.html">brtr::Bench</a></div><div class="ttdoc">Bench class, creates a bench Object. </div><div class="ttdef"><b>Definition:</b> <a href="_bench_8h_source.html#l00024">Bench.h:24</a></div></div>
<div class="ttc" id="classbrtr_1_1_drunken_interaction_callback_html"><div class="ttname"><a href="classbrtr_1_1_drunken_interaction_callback.html">brtr::DrunkenInteractionCallback</a></div><div class="ttdoc">Callback for the drunk effect. </div><div class="ttdef"><b>Definition:</b> <a href="_drunken_interaction_callback_8h_source.html#l00015">DrunkenInteractionCallback.h:15</a></div></div>
<div class="ttc" id="classbrtr_1_1_program_switcher_callback_html"><div class="ttname"><a href="classbrtr_1_1_program_switcher_callback.html">brtr::ProgramSwitcherCallback</a></div><div class="ttdoc">Callback for switching the postprocess programs. </div><div class="ttdef"><b>Definition:</b> <a href="_program_switcher_callback_8h_source.html#l00017">ProgramSwitcherCallback.h:17</a></div></div>
<div class="ttc" id="namespacebrtr_html_a2060f4d70c0e3bc7e2e35f82e279a40d"><div class="ttname"><a href="namespacebrtr.html#a2060f4d70c0e3bc7e2e35f82e279a40d">brtr::interactionMask</a></div><div class="ttdeci">const int interactionMask</div><div class="ttdef"><b>Definition:</b> <a href="_util_functions_8h_source.html#l00028">UtilFunctions.h:28</a></div></div>
<div class="ttc" id="namespacebrtr_html_a21ab851f18c0c85fa006766034833a4f"><div class="ttname"><a href="namespacebrtr.html#a21ab851f18c0c85fa006766034833a4f">brtr::interactionAndCollisionMask</a></div><div class="ttdeci">const int interactionAndCollisionMask</div><div class="ttdef"><b>Definition:</b> <a href="_util_functions_8h_source.html#l00029">UtilFunctions.h:29</a></div></div>
<div class="ttc" id="class_animation_creator_html"><div class="ttname"><a href="class_animation_creator.html">AnimationCreator</a></div><div class="ttdef"><b>Definition:</b> <a href="_animation_creater_8h_source.html#l00005">AnimationCreater.h:5</a></div></div>
<div class="ttc" id="classbrtr_1_1_add_portal_gun_interaction_callback_html"><div class="ttname"><a href="classbrtr_1_1_add_portal_gun_interaction_callback.html">brtr::AddPortalGunInteractionCallback</a></div><div class="ttdoc">InteractionCallback for adding the portal gun to the players inventar. </div><div class="ttdef"><b>Definition:</b> <a href="_add_portal_gun_interaction_callback_8h_source.html#l00014">AddPortalGunInteractionCallback.h:14</a></div></div>
<div class="ttc" id="namespacebrtr_html_a31c533ae635c528c761cc83e34e91b2f"><div class="ttname"><a href="namespacebrtr.html#a31c533ae635c528c761cc83e34e91b2f">brtr::createCrosshair</a></div><div class="ttdeci">osg::ref_ptr&lt; osg::Geode &gt; createCrosshair(unsigned int width, unsigned int height)</div><div class="ttdoc">creates a crosshair in the middle of the screen </div><div class="ttdef"><b>Definition:</b> <a href="_util_functions_8cpp_source.html#l00555">UtilFunctions.cpp:555</a></div></div>
<div class="ttc" id="class_animation_creator_html_aca52f3472d0be7043c63ff5ede8084aa"><div class="ttname"><a href="class_animation_creator.html#aca52f3472d0be7043c63ff5ede8084aa">AnimationCreator::createAnimationPath</a></div><div class="ttdeci">osg::AnimationPath * createAnimationPath(float time)</div><div class="ttdoc">Creates the animation path. </div><div class="ttdef"><b>Definition:</b> <a href="_animation_creater_8cpp_source.html#l00040">AnimationCreater.cpp:40</a></div></div>
<div class="ttc" id="classbrtr_1_1_modify_material_visitor_html_a698aa0c31f8c5add503d47bc9898eec3"><div class="ttname"><a href="classbrtr_1_1_modify_material_visitor.html#a698aa0c31f8c5add503d47bc9898eec3">brtr::ModifyMaterialVisitor::setShininess</a></div><div class="ttdeci">ModifyMaterialVisitor &amp; setShininess(double val)</div><div class="ttdef"><b>Definition:</b> <a href="_modify_material_visitor_8cpp_source.html#l00067">ModifyMaterialVisitor.cpp:67</a></div></div>
<div class="ttc" id="classbrtr_1_1_control_room_html"><div class="ttname"><a href="classbrtr_1_1_control_room.html">brtr::ControlRoom</a></div><div class="ttdoc">Control Room Class, derived from PositionAttitudeTransform, set ups the whole room as its own childre...</div><div class="ttdef"><b>Definition:</b> <a href="_control_room_8h_source.html#l00018">ControlRoom.h:18</a></div></div>
<div class="ttc" id="structbrtr_1_1_rendering_pipeline_html"><div class="ttname"><a href="structbrtr_1_1_rendering_pipeline.html">brtr::RenderingPipeline</a></div><div class="ttdoc">struct holding the camera for the multi-rendering passes. Also holds the program vector for the post ...</div><div class="ttdef"><b>Definition:</b> <a href="_util_functions_8h_source.html#l00056">UtilFunctions.h:56</a></div></div>
<div class="ttc" id="namespacebrtr_html_af79a815819e2ef65ea9cd43dc9d43679"><div class="ttname"><a href="namespacebrtr.html#af79a815819e2ef65ea9cd43dc9d43679">brtr::collisionMask</a></div><div class="ttdeci">const int collisionMask</div><div class="ttdef"><b>Definition:</b> <a href="_util_functions_8h_source.html#l00027">UtilFunctions.h:27</a></div></div>
<div class="ttc" id="namespacebrtr_html_adcf0546a392221be3958ec96f99887f0"><div class="ttname"><a href="namespacebrtr.html#adcf0546a392221be3958ec96f99887f0">brtr::createRenderingPipeline</a></div><div class="ttdeci">void createRenderingPipeline(unsigned int width, unsigned int height, osg::Node &amp;rootForToon, osgViewer::Viewer &amp;viewer, RenderingPipeline &amp;pipe, osg::Vec3f &amp;fogColor)</div><div class="ttdoc">creates the rendering pipeline </div></div>
<div class="ttc" id="classbrtr_1_1_train_switcher_callback_html"><div class="ttname"><a href="classbrtr_1_1_train_switcher_callback.html">brtr::TrainSwitcherCallback</a></div><div class="ttdoc">Callback for switching the "trains". </div><div class="ttdef"><b>Definition:</b> <a href="_train_switcher_callback_8h_source.html#l00015">TrainSwitcherCallback.h:15</a></div></div>
<div class="ttc" id="structbrtr_1_1_rendering_pipeline_html_ae945030321a6b44f00266954c8c50bf3"><div class="ttname"><a href="structbrtr_1_1_rendering_pipeline.html#ae945030321a6b44f00266954c8c50bf3">brtr::RenderingPipeline::pass_0_color</a></div><div class="ttdeci">osg::ref_ptr&lt; osg::Camera &gt; pass_0_color</div><div class="ttdoc">Camera for the first pass, renders the ColorBuffer to Texture. </div><div class="ttdef"><b>Definition:</b> <a href="_util_functions_8h_source.html#l00057">UtilFunctions.h:57</a></div></div>
<div class="ttc" id="classbrtr_1_1_weapon_h_u_d_html"><div class="ttname"><a href="classbrtr_1_1_weapon_h_u_d.html">brtr::WeaponHUD</a></div><div class="ttdoc">WeaponHUD class, provides the functions to add a HUD camera to the scene. </div><div class="ttdef"><b>Definition:</b> <a href="_weapon_h_u_d_8h_source.html#l00023">WeaponHUD.h:23</a></div></div>
<div class="ttc" id="structbrtr_1_1_rendering_pipeline_html_a18752632c1b557d283e523ebbc0443a0"><div class="ttname"><a href="structbrtr_1_1_rendering_pipeline.html#a18752632c1b557d283e523ebbc0443a0">brtr::RenderingPipeline::pass_0_depth</a></div><div class="ttdeci">osg::ref_ptr&lt; osg::Camera &gt; pass_0_depth</div><div class="ttdoc">Camera for the first pass, renders the DepthBuffer to Texture. </div><div class="ttdef"><b>Definition:</b> <a href="_util_functions_8h_source.html#l00058">UtilFunctions.h:58</a></div></div>
<div class="ttc" id="namespacebrtr_html_a62da4f109238c45882dd64d7a7e97a1d"><div class="ttname"><a href="namespacebrtr.html#a62da4f109238c45882dd64d7a7e97a1d">brtr::createHUDCamera</a></div><div class="ttdeci">osg::ref_ptr&lt; osg::Camera &gt; createHUDCamera(double left, double right, double bottom, double top)</div><div class="ttdoc">creates a HUD-Cam with a 2D-orthogonal projection matrix </div><div class="ttdef"><b>Definition:</b> <a href="_util_functions_8cpp_source.html#l00061">UtilFunctions.cpp:61</a></div></div>
<div class="ttc" id="classbrtr_1_1_add_interaction_callback_to_drawable_visitor_html"><div class="ttname"><a href="classbrtr_1_1_add_interaction_callback_to_drawable_visitor.html">brtr::AddInteractionCallbackToDrawableVisitor</a></div><div class="ttdoc">NodeVisitor for batch replacing all UserDataContainer of all Drawables. </div><div class="ttdef"><b>Definition:</b> <a href="_add_interaction_callback_to_drawable_visitor_8h_source.html#l00017">AddInteractionCallbackToDrawableVisitor.h:17</a></div></div>
<div class="ttc" id="namespacebrtr_html_ad772c6dbc0a2cabd40a284676c124a97"><div class="ttname"><a href="namespacebrtr.html#ad772c6dbc0a2cabd40a284676c124a97">brtr::createLight</a></div><div class="ttdeci">osg::ref_ptr&lt; osg::LightSource &gt; createLight(const osg::Vec3 &amp;pos, int lightNum, int point=1, double spotCutoff=180, double spotExponent=0)</div><div class="ttdoc">creates a Light with a lightsource </div></div>
<div class="ttc" id="namespacebrtr_html_aea7b3b188858f0bce09f2450a749f497"><div class="ttname"><a href="namespacebrtr.html#aea7b3b188858f0bce09f2450a749f497">brtr::createToonTex</a></div><div class="ttdeci">osg::ref_ptr&lt; osg::Texture2D &gt; createToonTex(std::string toonTex)</div><div class="ttdoc">creates a Texture2D object with the given toonTex </div><div class="ttdef"><b>Definition:</b> <a href="_util_functions_8cpp_source.html#l00614">UtilFunctions.cpp:614</a></div></div>
<div class="ttc" id="namespacebrtr_html_a05625aff9337331ae351d283f79f0f1e"><div class="ttname"><a href="namespacebrtr.html#a05625aff9337331ae351d283f79f0f1e">brtr::createVaseWithFlower</a></div><div class="ttdeci">osg::ref_ptr&lt; osg::PositionAttitudeTransform &gt; createVaseWithFlower()</div><div class="ttdoc">combines the stalk, bud and vase in a postitionAttitudetransform </div><div class="ttdef"><b>Definition:</b> <a href="_util_functions_8cpp_source.html#l00581">UtilFunctions.cpp:581</a></div></div>
<div class="ttc" id="classbrtr_1_1_modify_material_visitor_html"><div class="ttname"><a href="classbrtr_1_1_modify_material_visitor.html">brtr::ModifyMaterialVisitor</a></div><div class="ttdoc">Visitor for altering the material attributes, mainly used for objects craeted with blender...</div><div class="ttdef"><b>Definition:</b> <a href="_modify_material_visitor_8h_source.html#l00014">ModifyMaterialVisitor.h:14</a></div></div>
<div class="ttc" id="_main_8cpp_html_a840291bc02cba5474a4cb46a9b9566fe"><div class="ttname"><a href="_main_8cpp.html#a840291bc02cba5474a4cb46a9b9566fe">main</a></div><div class="ttdeci">int main(void)</div><div class="ttdef"><b>Definition:</b> <a href="_main_8cpp_source.html#l00034">Main.cpp:34</a></div></div>
<div class="ttc" id="classbrtr_1_1_geometry_placer_visitor_html"><div class="ttname"><a href="classbrtr_1_1_geometry_placer_visitor.html">brtr::GeometryPlacerVisitor</a></div><div class="ttdoc">NodeVisitor for batch replacing all Geometry in all visited Geodes. </div><div class="ttdef"><b>Definition:</b> <a href="_geometry_placer_visitor_8h_source.html#l00015">GeometryPlacerVisitor.h:15</a></div></div>
<div class="ttc" id="structbrtr_1_1_rendering_pipeline_html_afe773fb98986d39ef23a4edf3634af10"><div class="ttname"><a href="structbrtr_1_1_rendering_pipeline.html#afe773fb98986d39ef23a4edf3634af10">brtr::RenderingPipeline::programs</a></div><div class="ttdeci">std::vector&lt; osg::ref_ptr&lt; osg::Program &gt; &gt; programs</div><div class="ttdoc">vector with the avaible postprocess programs </div><div class="ttdef"><b>Definition:</b> <a href="_util_functions_8h_source.html#l00060">UtilFunctions.h:60</a></div></div>
<div class="ttc" id="structbrtr_1_1_rendering_pipeline_html_aea2228e41f1e5c6db5d616c05ecc27fd"><div class="ttname"><a href="structbrtr_1_1_rendering_pipeline.html#aea2228e41f1e5c6db5d616c05ecc27fd">brtr::RenderingPipeline::pass_PostProcess</a></div><div class="ttdeci">osg::ref_ptr&lt; osg::Camera &gt; pass_PostProcess</div><div class="ttdoc">PostProcess Camera, uses the texture from the first pass to create various effects. </div><div class="ttdef"><b>Definition:</b> <a href="_util_functions_8h_source.html#l00059">UtilFunctions.h:59</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_f4e982bca5d979afcf7d664254407d09.html">Main</a></li><li class="navelem"><a class="el" href="_main_8cpp.html">Main.cpp</a></li>
    <li class="footer">Generated on Thu Jul 17 2014 01:40:24 for BrainTrain by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
  </ul>
</div>
</body>
</html>
